#include "hamster_allocator.h"
#include <iostream>
#include <vector>
#include <bits/allocator.h>

int main()
{
    int a[5] = {1, 2, 3, 4, 5};

    std::vector<int, hamster::allocator<int>> v(a, a + 5);
    for(auto& i : v)
        std::cout << i << " ";
    std::cout << std::endl;

    // test sub-allocation allocator
    // std::vector<int, hamster_sub_allocator::simple_alloc<int>> w(a, a + 5);
    // for(auto& i : w)
    //     std::cout << i << " ";
    // std::cout << std::endl;

    // test bits/allocator.h
    std::vector<int, std::allocator<int>> x(a, a + 5);
    for(auto& i : x)
        std::cout << i << " ";
    std::cout << std::endl;
    
    return 0;
}